<template>
    <div class="system-process">
        <nav-header></nav-header>
        <div class="zh-table">
            <div class="zh-table-contents">
                <el-table
                    :data="listData"
                    fixed
                    border
                    style="width: 100%">
                    <el-table-column
                        prop="name"
                        label="属性"
                        align="center"
                        show-overflow-tooltip>
                    </el-table-column>
                    <el-table-column
                        prop="value"
                        label="值"
                        align="center"
                        show-overflow-tooltip>
                    </el-table-column>
                </el-table>
            </div>
		</div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            listData: [],
        }
    },
    created() {
        this.getList();
    },
    methods: {
        /**
         * 获取列表数据
         */
        getList() {
            const success = (res => {
                this.$message.success(res.msg);
                
                for (let key in res.data) {
                    this.listData.push({
                        name: key,
                        value: res.data[key]
                    })
                }
            })

            this.$ajax.get('api/system/get_process', {func:{success: success}});
        },
    },
}
</script>

<style lang="scss">
    .system-process {
        
    }
</style>